{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>配置</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                        <a class="dropdown-toggle" data-toggle="dropdown" href="form_basic.html#">
                            <i class="fa fa-wrench"></i>
                        </a>
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <form class="form-horizontal" name="" id="preserve" method="post" action="/sms_treasure">
                    <input type="hidden" name="id" value="{$edit.id?$edit.id:''}">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">网关：</label>
                            <div class="input-group col-sm-3">
                                <input type="text" class="form-control" name="sms_url" required="" value="{$edit.sms_url?$edit.sms_url:'http://www.smsbao.com/'}" >
                                <span class="help-block m-b-none"><i class="fa fa-info-circle"></i>前往短信宝管理地址查看 http://www.smsbao.com/</span>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">签名：</label>
                            <div class="input-group col-sm-3">
                                <input type="text" class="form-control" name="sms_msg" required="" value="{$edit.sms_msg?$edit.sms_msg:''}">
                                <span class="help-block m-b-none"><i class="fa fa-info-circle"></i>例如：【南風】您的验证码是{CODE},5分钟内有效.若非本人操作请忽略此消息。{CODE}会自动替换为验证码</span>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">账号：</label>
                            <div class="input-group col-sm-3">
                                <input type="text" class="form-control" name="sms_number" required="" value="{$edit.sms_number?$edit.sms_number:''}">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">密码：</label>
                            <div class="input-group col-sm-3">
                                <input type="password" class="form-control" name="sms_password" required="" value="{$edit.sms_password?$edit.sms_password:''}">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">发送：</label>
                            <div class="input-group col-sm-3">
                                
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label"></label>
                            <div class="input-group col-sm-3">
                                <p>方法：sms_phone(手机号)</p>
                                <p>返回：code 状态码  msg 描述</p>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">使用：</label>
                            <div class="input-group col-sm-3">
                                
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label"></label>
                            <div class="input-group col-sm-3">
                                <p>获取验证码：Cache::get("手机号"."read","");</p>
                                <p>删除验证码：Cache::rm("手机号"."read");</p>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-3 col-sm-offset-3">
                                <button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存</button>&nbsp;&nbsp;&nbsp;
                                <a class="btn btn-danger" href="javascript:history.go(-1);"><i class="fa fa-close"></i> 返回</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>

        </div>
    </div>
</div>
{include file="public/footer" /}
<!-- 提交后的操作 -->
{include file="public/submit" /}
</body>
</html>